package zlx.springcloud.cotroller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import zlx.springcloud.domain.CommonResult;
import zlx.springcloud.domain.Oder;
import zlx.springcloud.service.OderService;

import javax.annotation.Resource;

@RestController
public class OderController {
    @Resource
    private OderService oderService;

    @GetMapping("/oder/create")
    public CommonResult create(Oder oder){
        oderService.create(oder);
        return new CommonResult(200,"订单创建成功");

    }
}
